package com.kun.oa.service;

import com.github.pagehelper.PageInfo;
import com.kun.oa.entity.Account;
import com.kun.oa.vo.RespStat;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author fangkun
 * @create 2023-04-27-11:03
 */
public interface IAccountService {
    Account validataAccount(String loginName, String password);

    PageInfo<Account> findByPage(int pageNum, int pageSize);

    RespStat deleteById(int id);

    boolean updateMsg(Account account);

    Account selectById(int id);

    int modifyUserByAdmin(Integer id, String password);

    @Transactional
    boolean registerUser(Account account);
}
